import request from '@/utils/request'
import type { LoginRequestData, LoginResponseData } from './types/user'

enum API {
  LOGIN_URL = '/account/login'
}

// 登录接口
export const reqLogin = (data: LoginRequestData) => {
  return request.get<any, LoginResponseData>(
    `${API.LOGIN_URL}?username=${data.username}&password=${data.password}&type=3`
  )
}
